#@head("新增/编辑组织机构")
#define main()
	<link rel="stylesheet" href="#(ctx)/assets/layuiadmin/style/form.css" media="all">
#end
<body>
	<div class="layui-form layui-form-pane" lay-filter="layuiadmin-form-system">
	    <div class="layui-row layui-col-space1 task-row">
	    	<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">机构名称</label>
					<div class="layui-input-block">
						<input type="text" name="model.name" value="#(model.name??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
	 		<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">上级机构</label>
					<div class="layui-input-block">
						<select name="model.parent_id" lay-verify="required">
							<option value="0" #(model.parent_id??==0 ? 'selected' : '')>组织机构</option>
				        	#(orgSelect)
						</select>
					</div>
				</div>
			</div>
		</div>
	    <div class="layui-row layui-col-space1 task-row">
	 		<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">机构编码</label>
					<div class="layui-input-block">
						<input type="text" name="model.code" value="#(model.code??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
	 		<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">联系人</label>
					<div class="layui-input-block">
						<input type="text" name="model.contacts" value="#(model.contacts??)" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
		</div>
	    <div class="layui-row layui-col-space1 task-row">
	 		<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">联系人电话</label>
					<div class="layui-input-block">
						<input type="text" name="model.phone" value="#(model.phone??)" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
	 		<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">联系人邮箱</label>
					<div class="layui-input-block">
						<input type="text" name="model.email" value="#(model.email??)" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
		</div>
	    <div class="layui-row layui-col-space1 task-row">
	    	<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">机构描述</label>
					<div class="layui-input-block">
						<input type="text" name="model.remark" value="#(model.remark??)" placeholder="请输入" autocomplete="off" class="layui-input">
					</div>
				</div>
			</div>
	 		<div class="layui-col-xs6">
				<div class="layui-form-item">
					<label class="layui-form-label">状态</label>
					<div class="layui-input-block">
						<input type="radio" name="model.status" value="1" title="启用" #(model.status?? == 1 ? 'checked' : '')>
						<input type="radio" name="model.status" value="0" title="停用" #(model.status?? == 0 ? 'checked' : '')>
					</div>
				</div>
			</div>
		</div>
		<input type="hidden" name="model.id" value="#(model.id??)"/>
		<div class="layui-form-item layui-hide">
			<input type="button" lay-submit lay-filter="LAY-org-front-submit" id="LAY-org-front-submit" value="确认">
		</div>
	</div>
	#@layui()
	#define use()
		use(["index", "form", "iconPicker"], function(){
			var $ = layui.$,
			form = layui.form;
		})
	#end
</body>
</html>